#ifndef __COMMON_H__
#define __COMMON_H__

#include <fstream>
#include <string>
#include <map>
#include <vector>
#include <cstdlib>
#include <cstring>
#include <sstream>

using namespace std;

string id2Str(int id);
int str2Id(string str);

void readIFS(ifstream &ifs,int &var);
void readIFS(ifstream &ifs,float &var);
void readIFS(ifstream &ifs,string &var);

void writeOFS(ofstream &ofs,int &var);
void writeOFS(ofstream &ofs,float &var);
void writeOFS(ofstream &ofs,string &var);

#endif // __COMMON_H__
